package com.dkm.nettysocketdemo.myWebsite.dao;

import com.dkm.nettysocketdemo.myWebsite.domain.HelmetClient;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface HelmetClientMapper {

    int deleteByPrimaryKey(String pkClientId);

    int insertSelective(HelmetClient helmetClient);

    HelmetClient selectByPrimaryKey(String pkClientId);

    int updateByPrimaryKeySelective(HelmetClient helmetClient);

    List<HelmetClient> selectAll(@Param("helmetClient")HelmetClient helmetClient,@Param("startDate") String startTime,@Param("endDate") String endTime);

    Integer rowCount(@Param("helmetClient") HelmetClient helmetClient,@Param("startDate") String startTime,@Param("endDate") String endTime);

    int deleteAll(List<String> list, String name, Date date);

    HelmetClient getMail(@Param("clientMail") String clientMail);

    HelmetClient isLogin(@Param("clientAccountNumber") String clientAccountNumber, @Param("clientPwd") String clientPwd);

    /**
     * 检查是否重名
     * @param clientAccountNumber 用户账号
     * @param pkClientId 客户id
     * @return 回调函数
     */
    Integer selectCount(String clientAccountNumber,String pkClientId);
}